/*
 * @Author: 姚杰鸿 adolphus520@163.com
 * @Date: 2024-10-30 17:07:16
 * @LastEditors: 姚杰鸿
 * @LastEditTime: 2024-11-11 10:55:56
 * @Description: file content
 */
import { createApp } from "vue";
import App from "./App.vue";
import { store, key, localStore } from "@/store";
import router from "./router";

import "@/styles/index.scss";
import "./style.css";

import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import { install } from "@icon-park/vue-next/es/all";

/* import the fontawesome */
import { library } from "@fortawesome/fontawesome-svg-core";
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
import { fas } from "@fortawesome/free-solid-svg-icons";
library.add(fas);

import ElementPlus from "element-plus";

const app = createApp(App);
install(app);
app.component("FontAwesomeIcon", FontAwesomeIcon);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
app.use(store, key);
store.commit(localStore);
app.use(ElementPlus).use(router).mount("#app");
